package com.ruoyi.transaction.domain.controller;

import com.ruoyi.common.core.page.TableDataInfo;
import com.wowoniu167.bancs.service.BancsService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

/**
 * 功能描述：
 *
 * @Author: 叶立鹏
 * @Date: 2021/4/12 21:40
 */
@RestController
@RequestMapping("/transaction")
public class TransactionController {
    @Autowired
    private BancsService bancsService ;
    /**
     * 查询定时任务列表
     */
//    @PreAuthorize("@ss.hasPermi('transaction')")
    @PostMapping("/accountInfoListQuery")
    public JSONObject accountInfoListQuery(@RequestBody JSONObject requestJson)
    {
        String transaction= requestJson.get("transaction").toString();
        JSONObject req = requestJson.getJSONObject("requestBody");
        return  bancsService.requestCoreService(req,transaction);
    }
}
